package com.apache.attachment.mommon;

import com.apache.database.constant.SystemTools;

/**
 * 附件库配置文件管理类
 * @author qmhao
 * @version 1.2.3
 */
public class AttachmentConfig {

	/**
	 * 根据key或者相应的值
	 * @param key
	 * @return String
	 */
	public static String getProp(String key) {
		return SystemTools.getInstance().getValue(key);
	}

	public static String getTaskRootUrl() {
		return SystemTools.getInstance().getValue("task_root_url");
	}

	/**
	 * 获得指定域名
	 * @return String
	 */
	public static String getCookieDomain() {
		String cookieDomain = SystemTools.getInstance().getValue("IFLOW_SITE_DOMAIN");
		return cookieDomain;
	}

}
